package dao;

import org.hibernate.Session;
import java.util.List;
import contrat.Action;

public class ActionDAO extends AbstractDAO<Action>  {
	
	/* Brouillon
	public Action retrieveBySomething(Object xxx)
	{
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();
        
        String hql = "from CLASS c WHERE c.attribute = :attribute ORDER BY c.attribute";
        List list = session.createQuery(hql)
		        	.setParameter("attribute", "QQQ")
		        	.list();
        
        session.getTransaction().commit();
        session.close();
        
        return (Action) list.get(0);
	}
	*/

}
